﻿@model AdminLite.Models.RoleViewModel

@{
    ViewBag.Title = "角色管理";
}

<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">角色新增</h3>
    </div>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            @Html.ValidationSummary(true)

            <div class="form-group">
                @Html.LabelFor(model => model.Name, new { @class = "control-label col-md-2" })
                <div class="col-md-6">
                    @Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.Description, new { @class = "control-label col-md-2" })
                <div class="col-md-6">
                    @Html.TextBoxFor(model => model.Description, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-6">
                    <input type="submit" value="新增" class="btn btn-primary"/>
                    @Html.ActionLink("返回", "Index", new { }, new { @class = "btn btn-default" })
                </div>
            </div>
        </div>
    }

</div>
